<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title><%--subsidyStatistic.jsp--%>省级补助统计</title>
	<link href="${ctxCss}/common/listPage.css" type="text/css" rel="stylesheet" />
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
		});

		//查询
		function search() {
           window.location.href = "${ctx}/bus/statistic/subsidyStatistic?year="+$("#year").val();
        }

        //导出
        function exportTbl() {
            window.location.href = "${ctx}/bus/statistic/exportSubsidyStatistic?year="+$("#year").val();
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/bus/statistic/subsidyStatistic">补助统计</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="subsidy" action="" method="post" class="breadcrumb form-search">
		<ul class="ul-form">
			<li>
				<label>年度：</label>
				<input id="year" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="${year}"
					   onclick="WdatePicker({dateFmt:'yyyy'});"/>
			</li>
			<li class="btns">
				<input id="btnSubmit" class="btn btn-primary" type="button" value="查询" onclick="search()"/>
				<input id="btnExport" class="btn btn-primary" type="button" value="导出表格" onclick="exportTbl()"/>
			</li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>序号</th>
				<th>市</th>
				<th>县/区</th>
				<th>存栏量（头）</th>
				<th>疫苗采购量（毫升）</th>
				<th>疫苗采购量（头份）</th>
				<th>补助总额（元）</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${dataList}" var="subsidy" varStatus="a">
			<tr>
				<td>
					${a.index + 1}
				</td>
				<td>
					${subsidy.city}
				</td>
				<td>
					${subsidy.county}
				</td>
				<td>
					${subsidy.depositNum}
				</td>
				<td>
					${subsidy.mlNum}
				</td>
				<td>
					${subsidy.tfNum}
				</td>
				<td>
					${subsidy.moneyNum}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</body>
</html>